<template>
  <div class="Statistics">
    <el-container>
      <el-aside style="width:220px">
          <el-menu  default-active="2"
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose"
          background-color="#323232"
          text-color="#eee"
          active-text-color="#ff9900">
            <el-menu-item index="1">
              <span>
                <router-link to="/StatisticsList">资产清单</router-link>
              </span>
            </el-menu-item>
            <el-menu-item index="2">
              <span slot="title">
                <router-link to="/Department">部门汇总</router-link>
              </span>
            </el-menu-item>
            <el-menu-item index="3">
              <span slot="title">
                <router-link to="/Subtotal">分类汇总</router-link>
              </span>
            </el-menu-item>
            <el-menu-item index="4">
              <span slot="title">
                <router-link to="/Classification">分类使用情况</router-link>
              </span>
            </el-menu-item>
          </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>
<script>
export default {
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
};
</script>
<style lang="scss" scoped>
.el-menu {
  width: 220px;
  height: 100%;
  border: none;
  // color: #fff;
  /* background-color: #323232;
  :hover {
    background-color: #ff9900;
  } */
}
.el-container {
  background-color: #f3f6fb;
  .el-main {
    background-color: #fff;
  }
}
span{
  color:#eee;
}
</style>
